package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.kingyun.gpsinspection.purificationservice.facade.model.som.Admittance;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.StationIn;

import java.util.List;

/**
 * 进出站接口定义
 * Created by yangcs on 2017/3/27.
 */
public interface InOutService {

    /**
     * 根据组织id查询进出站信息
     * @param orgId
     * @return
     */
    List<StationIn> queryByOrgId(String orgId);

    /**
     * 验证进站
     * @param stationIn
     * @return
     */
    Admittance authCode(StationIn stationIn);

    /**
     * 查询单个进出站信息
     * @param stationIn
     * @return
     */
    StationIn queryStationIn(StationIn stationIn);

    /**
     * 新增进出站信息
     * @param admittance
     * @param stationIn
     * @return
     */
    StationIn insert(Admittance admittance, StationIn stationIn);

    /**
     * 新增进出站信息
     * @param stationIn
     * @return
     */
    StationIn insert(StationIn stationIn);

    /**
     * 进站确认
     * @param stationIn
     * @return
     */
    StationIn sure(StationIn stationIn);

    /**
     * 出站
     * @param stationIn
     * @param leaveNumb
     * @param userId
     * @return
     */
    StationIn out(StationIn stationIn, int leaveNumb, String userId);
}
